package cn.org.intelli.zffserver.aop;


public class AuthenticationTicket {
    /*  7 */   private static final ThreadLocal<AuthenticationTicket> holder = new ThreadLocal<>();
    private String pin;

    public AuthenticationTicket(String pin) {
        /* 14 */
        this.pin = pin;
    }

    public static AuthenticationTicket getTicket() {
        /* 22 */
        return holder.get();
    }

    public static void setTicket(AuthenticationTicket ticket) {
        /* 18 */
        holder.set(ticket);
    }

    public static void remove() {
        /* 26 */
        holder.remove();
    }

    /*  9 */
    public String getPin() {
        return this.pin;
    }

    public void setPin(String pin) {
        /* 10 */
        this.pin = pin;
    }
}

